package request

type GetProjectListRequest struct {
	GroupId int `binding:"required" form:"group_id" json:"group_id" label:"所属分组"`
}

type CreateProjectRequest struct {
	ProjectName string `binding:"required,max=20" form:"project_name" json:"project_name" label:"项目名称"`
	GroupId     int    `binding:"required" form:"group_id" json:"group_id" label:"所属分组"`
}

type GetProjectMenuListRequest struct {
	ProjectId int    `binding:"required" form:"project_id" json:"project_id" label:"所属项目"`
	Search    string `binding:"omitempty" form:"search" json:"search" label:"搜索"`
}
type DelProjectMenuRequest struct {
	ProjectId int `binding:"required" form:"project_id" json:"project_id" label:"所属项目"`
	MenuId    int `binding:"required,min=1" form:"menu_id" json:"menu_id" label:"分类id"`
}

type CreateProjectMenuRequest struct {
	Name      string `binding:"required,max=20" form:"name" json:"name" label:"分类名称"`
	ProjectId int    `binding:"required" form:"project_id" json:"project_id" label:"所属项目"`
}

type EditProjectMenuRequest struct {
	Name   string `binding:"required,max=20" form:"name" json:"name" label:"分类名称"`
	MenuId int    `binding:"required,min=1" form:"menu_id" json:"menu_id" label:"分类id"`
}
